
// module.exports = log4js;
const log4js = require('log4js');
const path = require('path');

// 配置 log4js
log4js.configure({
  appenders: {
    http: {
      type: path.join(__dirname, 'httpAppender'),
      url: 'http://api.zaidu.in:9527/game/logs',
      headers: { 'Content-Type': 'application/json'}
    }
  },
  categories: {
    default: {
      appenders: ['http'],
      level: 'info'
    }
  }
});

module.exports = log4js;
